import {axios} from '@/utils/request'

//查询重点排污企业
export function queryForFocus (parameter) {
  return axios({
    url: '/companyInfoBase/queryForFocus',
    method: 'post',
    data: parameter
  })
}
//编辑重点排污企业
export function companyInfoBaseup (parameter) {
  return axios({
    url: '/companyInfoBase/up',
    method: 'post',
    data: parameter
  })
}
//新增重点排污企业
export function companyInfoBaseinsert (parameter) {
  return axios({
    url: '/companyInfoBase/insert',
    method: 'post',
    data: parameter
  })
}
//删除重点排污企业
export function companyInfoBasedelete (id) {
  return axios({
    url: '/companyInfoBase/delete/'+ id,
    method: 'post',
  })
}
//企业员工查询
export function companyInfoBasequeryUsers (id) {
  return axios({
    url: '/companyInfoBase/queryUsers/'+ id,
    method: 'post',
  })
}
//查询其他企业
export function queryForOther (parameter) {
  return axios({
    url: '/companyInfoBase/queryForOther',
    method: 'post',
    data: parameter
  })
}
//导出重点排污
export function exportListForFocus (parameter) {
  return axios({
    url: '/companyInfoBase/exportListForFocus',
    method: 'post',
    responseType: 'blob',
    data: parameter
  })
}
//导出警示教育企业
export function exportListForOther (parameter) {
  return axios({
    url: '/companyInfoBase/exportListForOther',
    method: 'post',
    responseType: 'blob',
    data: parameter
  })
}

